package com.jzo2o.customer.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.mapper.WorkerCertificationAuditMapper;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import com.jzo2o.mysql.utils.PageUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务人员认证信息表 服务实现类
 * </p>
 *
 * @author itcast
 * @since 2023-09-06
 */
@Service
public class WorkerCertificationAuditServiceImpl extends ServiceImpl<WorkerCertificationAuditMapper, WorkerCertificationAudit> implements IWorkerCertificationAuditService {


    /**
     * 审核服务人员认证分页查询
     *
     * @param
     * @return
     */
    @Override
    public PageResult<WorkerCertificationAudit> pageQury(WorkerCertificationAuditPageQueryReqDTO workflowCertificationAudit) {
        Page<WorkerCertificationAudit> Page = PageUtils.parsePageQuery(workflowCertificationAudit, WorkerCertificationAudit.class);
        Page<WorkerCertificationAudit> workerCertificationAuditPage = baseMapper.selectPage(Page, null);

        return PageUtils.toPage(workerCertificationAuditPage, WorkerCertificationAudit.class);
    }
}
